import { Injectable, Logger } from '@nestjs/common';
import { ScheduleModule, Cron, Interval } from '@nestjs/schedule';

export const RegisterSchedule = ScheduleModule.forRoot()

@Injectable()
export class TimerService {
    private readonly logger = new Logger(TimerService.name);

    // 暂不开启
    // @Cron('*/30 * * * * *')
    // @Interval(30 * 1000)
    handleCron() {
        this.logger.debug('handleCron is Called');
    }
}